import api from '@/api/index'

// 律师列表
const getLawyerList = params => api.get('/admin/lawyer/list', {params: params})

// 团队列表
const getTeamList = params => api.get('/admin/team/list', {params: params})

// 标签列表
const getTagList = params => api.get('/admin/tag/list', {params: params})

// 律师设置（新增/编辑）
const lawyerSet = params => api.post('/admin/lawyer/set', params)

// 律所列表
const lawOfficeList = params => api.get('/admin/lawOffice/list', {params: params})

// 根据id获取律师
const lawyerFind = params => api.get('/admin/lawyer/find', {params: params})

// 获取业务
const getBusiness = params => api.get('/admin/lawyer/getBusiness', {params: params})

// 设置业务
const setBusiness = params => api.post('/admin/lawyer/setBusiness', params)

// 添加团队
const teamAdd = params => api.post('/admin/team/add', params)

// 编辑团队
const teamEdit = params => api.post('/admin/team/edit', params)

// 根据id获取团队
const teamFind = params => api.get('/admin/team/find', {params: params})

export {
    getLawyerList,
    getTeamList,
    getTagList,
    lawyerSet,
    lawOfficeList,
    lawyerFind,
    setBusiness,
    getBusiness,
    teamAdd,
    teamEdit,
    teamFind
}
